package com.bw.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bw.dao.SysLogMapper;
import com.bw.entity.SysLog;
import com.bw.service.SysLogService;

@Service(value = "sysLogService")
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    private SysLogMapper<SysLog>sysLogMapper;
    
    @Override
    public Integer insertSelective(SysLog sysLog) throws Exception {
           return this.sysLogMapper.insertSelective(sysLog);
        }

    @Override
    public Integer insertBatch(List<SysLog> sysLog) throws Exception {
           return this.sysLogMapper.insertBatch(sysLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.sysLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.sysLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(SysLog sysLog) {
           return this.sysLogMapper.updateByPrimaryKeySelective(sysLog);
    }

    @Override
    public SysLog findById(Object id) {
           return (SysLog) this.sysLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<SysLog> selectByCondition(SysLog sysLog) {
           return (List<SysLog>) this.sysLogMapper.selectByCondition(sysLog);
    }

    @Override
    public Integer selectCountByCondition(SysLog sysLog) {
           return  this.sysLogMapper.selectCountByCondition(sysLog);
    }

}
